﻿@model GoDive.App.DestViewModel

<input id="Hide_DestID" type="hidden" value="@ViewContext.RouteData.Values["id"]" />
<div class="bread-wrap">
    <ol class="breadcrumb">
        <li><a href="/dest/">目的地</a><i class="icon icon-arrow"></i></li>
        <li><a>@Model.Destination.Region.Name</a><span class="caret"></span><a>@Model.Destination.Name</a><i class="icon icon-arrow"></i></li>
        <li class="active">薄荷岛潜水指南</li>
    </ol>
</div>
<div class="plcFirstModule">
    <div class="plcFirstModuleWrap">
        <div class="plcFocusPhoto" data-toggle="modal" data-target="#gallery">
            <div class="carousel slide" id="carousel-example-generic" data-ride="carousel">
                <div class="carousel-inner" role="listbox">
                    <div class="item active">
                        <div class="titles-card" style="background-image: url('http://120.24.102.165/@{@Model.Destination.Pic}');"></div>
                        <div class="carousel-caption">
                        </div>
                    </div>
                    @*<div class="item">
                            <div class="titles-card" style="background-image: url('http://120.24.102.165/Images/Dest/34bc2a8725184425a04eafb7de4dd041.jpg');"></div>
                            <div class="carousel-caption">
                            </div>
                        </div>*@
                </div>
                <a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev">
                    <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
                    <span class="sr-only">Previous</span>
                </a>
                <a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next">
                    <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
                    <span class="sr-only">Next</span>
                </a>
            </div>
            <p class="photoMore">
                <a href="http://place.qyer.com/the-cook-islands/photo/" target="_blank" data-bn-ipg="place-country-pic-all">@{@Model.PhotoCounts}张照片</a>
            </p>
        </div>
        <!-- 左侧焦点图 end -->
        <div class="plcFocusOperate">
            <div class="title-small">简介</div>
            <p>
                @{
                    string summary = string.Empty;
                    string oriSummary = @Model.Destination.Summary;
                    summary = oriSummary.Length > 185 ? oriSummary.Substring(0, 185) + "......" : oriSummary;
                }
                @summary
            </p>
            @{
                if (!string.IsNullOrEmpty(@Model.Destination.BestSeason))
                {
                    <div class="title-small">最佳潜水季节</div>
                    <p>@Model.Destination.BestSeason</p>
                }
            }
        </div>
        <div class="clear"></div>
    </div>
</div>
@Html.Partial("~/Views/Shared/Gallery.cshtml")